-- GENERATED SPELL FOR [Insidion] --


function spell0_23281(pUnit, Event) --@Bellowing Roar,Self--
pUnit:FullCastSpellOnTarget(36922,pUnit)
pUnit:RegisterEvent('Sorts_23281', 6500, 1)
end

function spell1_23281(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23281', 591, 1)
end

function spell2_23281(pUnit, Event) --@Fiery Breath,n/a--
pUnit:FullCastSpellOnTarget(40032,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23281', 556, 1)
end

function spell3_23281(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(9573,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23281', 2000, 1)
end

function spell4_23281(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(40719,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23281', 20322, 1)
end

function Sorts_23281(pUnit, Event)
local choix_sorts_23281 = math.random(0, 4)
if choix_sorts_23281 == 0 then
pUnit:RegisterEvent('spell0_23281', 1, 1)
end
if choix_sorts_23281 == 1 then
pUnit:RegisterEvent('spell1_23281', 1, 1)
end
if choix_sorts_23281 == 2 then
pUnit:RegisterEvent('spell2_23281', 1, 1)
end
if choix_sorts_23281 == 3 then
pUnit:RegisterEvent('spell3_23281', 1, 1)
end
if choix_sorts_23281 == 4 then
pUnit:RegisterEvent('spell4_23281', 1, 1)
end
end

function mob23281_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23281', math.random(1500, 3000), 1)
end

function mob23281_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23281_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23281_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23281, 1, 'mob23281_Action')
RegisterUnitEvent(23281, 2, 'mob23281_Leave')
RegisterUnitEvent(23281, 3, 'mob23281_Kill')
RegisterUnitEvent(23281, 4, 'mob23281_Die')
